reverted log auto endline to better mimic printf
This commit is contained in:
parent
d5156d3345
commit
356a166b19
2 changed files with 4 additions and 3 deletions
|
@ -92,8 +92,8 @@
|
|||
|
||||
// This us a trick to bypass the silly
|
||||
// "warning: ISO C++11 requires at least one argument for the "..." in a variadic macro"
|
||||
// so we xan gave a single macro which can be called just like printf.
|
||||
#define LOG(...) _LOG(__VA_ARGS__, '\n')
|
||||
// so we can gave a single macro which can be called just like printf.
|
||||
#define LOG(...) _LOG(__VA_ARGS__, '\0')
|
||||
|
||||
inline FILE *log_handler(std::string s = "llama.log")
|
||||
{
|
||||
|
|
|
@ -61,7 +61,8 @@ void sigint_handler(int signo) {
|
|||
int main(int argc, char ** argv) {
|
||||
gpt_params params;
|
||||
|
||||
LOG("Hello World!")
|
||||
LOG("Hello World!\n")
|
||||
LOG("Hello Again!\n")
|
||||
|
||||
if (gpt_params_parse(argc, argv, params) == false) {
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue