1
0
Fork 0

stdlib: Add Lth_pfor

master
Marrub 2016-10-21 14:47:55 -04:00
parent f30001b818
commit 6834efad4f
1 changed files with 5 additions and 0 deletions

View File

@ -13,9 +13,14 @@
#ifndef lithos3__Lth_stdlib_h
#define lithos3__Lth_stdlib_h
#include <stdbool.h>
#define Lth_isidenti(ch) \
(isalpha(ch) || isdigit(ch) || ch == '_' || ch == '$' || ch == '\'')
// Post-for. Sort of.
#define Lth_pfor(cond, expr) while((cond) && ((expr), true))
// Extern Functions ----------------------------------------------------------|