Use __FILE__
This commit is contained in:
parent
a8e96565e1
commit
08811b747b
@ -4,5 +4,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
set -xeo pipefail
|
set -xeo pipefail
|
||||||
make
|
make -j$(nproc)
|
||||||
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-path/*.csi-video-index0) "$@"
|
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-path/*.csi-video-index0) "$@"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
#define __FILENAME__ __FILE__
|
||||||
|
|
||||||
typedef struct log_options_s {
|
typedef struct log_options_s {
|
||||||
bool debug;
|
bool debug;
|
||||||
|
@ -4,5 +4,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
set -xeo pipefail
|
set -xeo pipefail
|
||||||
make
|
make -j$(nproc)
|
||||||
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-id/usb-*-video-index0 ) "$@"
|
$GDB ./camera_stream -camera-path=$(echo /dev/v4l/by-id/usb-*-video-index0) "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user