Skip to content

Instantly share code, notes, and snippets.

@fudanchii
Last active December 21, 2015 04:18
Show Gist options
  • Save fudanchii/6248143 to your computer and use it in GitHub Desktop.
Save fudanchii/6248143 to your computer and use it in GitHub Desktop.
#include "jsc.h"
#include "main.js"
#include <stdio.h>
#define function int
struct { int (*log)(); } console = { .log = printf };
function main() {
console.log("my javascript can compile in gcc\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment