Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JavaScript + C Preprocessor
/usr/bin/cpp -P -undef -Wundef -std=c99 -nostdinc -Wtrigraphs -fdollars-in-identifiers -C < foo.js
#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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.