Skip to content

Commit

Permalink
barn_core: When your compiler is f**ked up
Browse files Browse the repository at this point in the history
  • Loading branch information
SolindekDev committed Nov 26, 2023
1 parent da99ad3 commit cc57c35
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@
- [ ] Implement modulus (forgot about it)

BUGS:
- [ ] Make args parser finally work...
- [X] Make args parser finally work...
- [X] Make numbers act like booleans vice versa
- [ ] __use__
- [ ] Variable use so warning doesnt come up
- [ ] Conditions with string
- [ ] Seg fault with using int_to_string from std.ba
- [ ] \\\" bug
- [ ] constant variables and enums can't use runtime values like functions
- [ ] constant variables and enums can't use runtime values like functions
- [ ] implement --no-main and --no-stdlib
13 changes: 13 additions & 0 deletions include/barn_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
#include <barn_debug.h>
#include <barn_error.h>

/* When your compiler is fucked up */
#ifndef __FILE_NAME__
# define __FILE_NAME__ "unknown_filename"
#endif /* __FILE_NAME__ */

#ifndef __LINE__
# define __LINE__ 0
#endif /* __LINE__ */

#ifndef __PRETTY_FUNCTION__
# define __PRETTY_FUNCTION__ "unknown_function"
#endif /* __PRETTY_FUNCTION__ */

#ifndef __BARN_SHOW_DEBUG__
// # define __BARN_SHOW_DEBUG__ (0x0001)
#endif /* __BARN_SHOW_DEBUG__ */
Expand Down

0 comments on commit cc57c35

Please sign in to comment.