X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d15b59f5d4f43d12719c5ce37518246058b405c6..15024d7e7c224d837592094932a2da18d17ee015:/Replace.hpp diff --git a/Replace.hpp b/Replace.hpp index 493ea30..3c4a6b7 100644 --- a/Replace.hpp +++ b/Replace.hpp @@ -1,4 +1,4 @@ -/* Cycript - Error.hppution Server and Disassembler +/* Cycript - Inlining/Optimizing JavaScript Compiler * Copyright (C) 2009 Jay Freeman (saurik) */ @@ -59,6 +59,8 @@ ($ CYFunctionParameter(args)) #define $S(args...) \ ($ CYString(args)) +#define $U \ + $V("undefined") #define $V(name) \ ($ CYVariable($I(name))) @@ -127,4 +129,17 @@ #define $N5(func, args...) \ $N(func, $C5_(args)) +#define $L(args...) \ + $ CYDeclaration(args) +#define $L1(arg0) \ + $ CYDeclarations(arg0) +#define $L2(arg0, args...) \ + $ CYDeclarations(arg0, $L1(args)) +#define $L3(arg0, args...) \ + $ CYDeclarations(arg0, $L2(args)) +#define $L4(arg0, args...) \ + $ CYDeclarations(arg0, $L3(args)) +#define $L5(arg0, args...) \ + $ CYDeclarations(arg0, $L4(args)) + #endif/*REPLACE_HPP*/