Skip to content

Instantly share code, notes, and snippets.

@chancyk
Created December 17, 2023 22:09
Show Gist options
  • Save chancyk/6b1e956afd24af368b37ec3724e1740f to your computer and use it in GitHub Desktop.
Save chancyk/6b1e956afd24af368b37ec3724e1740f to your computer and use it in GitHub Desktop.
/* Generated by Nim Compiler v1.7.3 */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks
#include "nimbase.h"
#include <stdio.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void);
N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsSrcatsNimatslibatssystemdotnim_Init000)(void);
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
N_LIB_PRIVATE void PreMainInner(void) {
}
N_LIB_PRIVATE int cmdCount;
N_LIB_PRIVATE char** cmdLine;
N_LIB_PRIVATE char** gEnv;
N_LIB_PRIVATE void PreMain(void) {
atmdotdotatsdotdotatsSrcatsNimatslibatssystemdotnim_Init000();
PreMainInner();
}
N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) {
NimMainModule();
}
N_CDECL(void, NimMain)(void) {
void (*volatile inner)(void);
PreMain();
inner = NimMainInner;
(*inner)();
}
int main(void) {
NimMain();
return 0;
}
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) {
{
printf("Hello, World");
nimTestErrorFlag();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment