X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/4644480a22eda2f7350a8997bb2109f325b576fe..15024d7e7c224d837592094932a2da18d17ee015:/Replace.hpp diff --git a/Replace.hpp b/Replace.hpp index c62a232..3c4a6b7 100644 --- a/Replace.hpp +++ b/Replace.hpp @@ -1,4 +1,4 @@ -/* Cycript - Remote Execution 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*/