Created
March 14, 2012 16:03
-
-
Save paraboul/2037497 to your computer and use it in GitHub Desktop.
JavaScript + C Preprocessor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/cpp -P -undef -Wundef -std=c99 -nostdinc -Wtrigraphs -fdollars-in-identifiers -C < foo.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define IN(ms) setTimeout(function() { setTimeout(___in_x, ms); }, 0); var ___in_x = function() | |
#include "other.js" | |
#define FOO "bar" | |
/* Killing Continuous-passing-style */ | |
function foo() { | |
IN(100) { | |
console.log(FOO); | |
} | |
} | |
foo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment