fixed printerr formatting
parent
1bdbe712fd
commit
5723e1d29b
|
@ -1,7 +1,7 @@
|
||||||
#ifndef STACK_H
|
#ifndef STACK_H
|
||||||
|
|
||||||
#define STACK_H
|
#define STACK_H
|
||||||
#define printerr(format, ...) printf("error: " format, ##__VA_ARGS__)
|
#define printerr(format, ...) printf("error: " format "\n", ##__VA_ARGS__)
|
||||||
|
|
||||||
#define EMPTY_STACK_ERR "stack empty"
|
#define EMPTY_STACK_ERR "stack empty"
|
||||||
#define SHORT_STACK_ERR "not enough elements on stack"
|
#define SHORT_STACK_ERR "not enough elements on stack"
|
||||||
|
|
Loading…
Reference in New Issue