Use __FILE__

This commit is contained in:
Kamil Trzcinski 2022-04-07 17:34:23 +02:00
parent a8e96565e1
commit 08811b747b
3 changed files with 4 additions and 4 deletions

View File

@ -4,5 +4,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"
set -xeo pipefail
make
make -j$(nproc)
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-path/*.csi-video-index0) "$@"

View File

@ -2,7 +2,7 @@
#include <stdio.h>
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define __FILENAME__ __FILE__
typedef struct log_options_s {
bool debug;

View File

@ -4,5 +4,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"
set -xeo pipefail
make
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-id/usb-*-video-index0 ) "$@"
make -j$(nproc)
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-id/usb-*-video-index0) "$@"