Skip to content

Instantly share code, notes, and snippets.

@Idorobots
Last active December 16, 2015 10:49
Show Gist options
  • Save Idorobots/5422779 to your computer and use it in GitHub Desktop.
Save Idorobots/5422779 to your computer and use it in GitHub Desktop.
C++, WAT
#include <stdio.h>
template <typename T>
T foo(T argc, char *argv<::>) <%
puts(argv<:0:>);
return argc;
%>
int(*main)(int, char*<::>) = &foo<int>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment