Skip to content

Commit

Permalink
fix(testf): fix testf_commands.h format
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa authored and miguelafsilva5 committed Oct 16, 2024
1 parent 8e3b4b1 commit ae1ec35
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/inc/testf_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@
#ifndef TESTF_COMMANDS_H
#define TESTF_COMMANDS_H

#define PRINT_FUNCTION printf
#define TESTF_TAG "[TESTF-C] "
#define PRINT_FUNCTION printf
#define TESTF_TAG "[TESTF-C] "

#define TESTF_COMMAND(X) PRINT_FUNCTION(TESTF_TAG X "\n")

#define COMMAND_START() PRINT_FUNCTION(TESTF_TAG "START" "\n")
#define COMMAND_END() PRINT_FUNCTION(TESTF_TAG "END" "\n")
#define COMMAND_SEND_CHAR(X) PRINT_FUNCTION(TESTF_TAG "SEND_CHAR " X "\n")
#define COMMAND_START() \
PRINT_FUNCTION(TESTF_TAG "START" \
"\n")
#define COMMAND_END() \
PRINT_FUNCTION(TESTF_TAG "END" \
"\n")

#define COMMAND_SEND_CHAR(X) PRINT_FUNCTION(TESTF_TAG "SEND_CHAR " X "\n")
#define COMMAND_SEND_TIMEOUT(X) PRINT_FUNCTION(TESTF_TAG "SET_TIMEOUT " X "\n")

#endif // TESTF_COMMANDS_H

0 comments on commit ae1ec35

Please sign in to comment.