stdlib: Add Lth_pfor
parent
f30001b818
commit
6834efad4f
|
@ -13,9 +13,14 @@
|
||||||
#ifndef lithos3__Lth_stdlib_h
|
#ifndef lithos3__Lth_stdlib_h
|
||||||
#define lithos3__Lth_stdlib_h
|
#define lithos3__Lth_stdlib_h
|
||||||
|
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
#define Lth_isidenti(ch) \
|
#define Lth_isidenti(ch) \
|
||||||
(isalpha(ch) || isdigit(ch) || ch == '_' || ch == '$' || ch == '\'')
|
(isalpha(ch) || isdigit(ch) || ch == '_' || ch == '$' || ch == '\'')
|
||||||
|
|
||||||
|
// Post-for. Sort of.
|
||||||
|
#define Lth_pfor(cond, expr) while((cond) && ((expr), true))
|
||||||
|
|
||||||
|
|
||||||
// Extern Functions ----------------------------------------------------------|
|
// Extern Functions ----------------------------------------------------------|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue