More optimizations

This commit is contained in:
Ne_Eo
2024-07-11 16:54:37 +02:00
parent 4347fe9305
commit bc8a59877e
2 changed files with 23 additions and 7 deletions
+5
View File
@@ -695,7 +695,12 @@ class Parser {
}
}
#if cpp
static inline function b2i(b:Bool) return untyped __cpp__("({0} ? 1 : 0)", b);
//static inline function b2i(b:Bool) return untyped __cpp__("(int)({0})", b);
#else
static inline function b2i(b:Bool) return b ? 1 : 0;
#end
function parseLambda( args : Array<Argument>, pmin ) {
while( true ) {