test.nim
· 2.0 KiB · Nim
Неформатований
/* Generated by Nim Compiler v2.2.4 */
#define NIM_INTBITS 64
#define NIM_EmulateOverflowChecks
#include "nimbase.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
typedef struct NimStrPayload NimStrPayload;
typedef struct NimStringV2 NimStringV2;
struct NimStrPayload {
NI cap;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct NimStringV2 {
NI len;
NimStrPayload* p;
};
typedef NimStringV2 tyArray__nHXaesL0DJZHyVS07ARPRA[1];
N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringV2* args_p0, NI args_p0Len_0);
N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void);
N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotchoosenimatstoolchainsatsnimminus2dot2dot4atslibatssystemdotnim_Init000)(void);
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void);
static const struct {
NI cap; NIM_CHAR data[16+1];
} TM__ipcYmBC9bj9a1BW35ABoB1Kw_3 = { 16 | NIM_STRLIT_FLAG, "raz dwa rzy test" };
static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__ipcYmBC9bj9a1BW35ABoB1Kw_2 = {{16, (NimStrPayload*)&TM__ipcYmBC9bj9a1BW35ABoB1Kw_3}}
;
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) {
#if 0
void (*volatile inner)(void);
inner = PreMainInner;
atmdotdotatsdotchoosenimatstoolchainsatsnimminus2dot2dot4atslibatssystemdotnim_Init000();
(*inner)();
#else
atmdotdotatsdotchoosenimatstoolchainsatsnimminus2dot2dot4atslibatssystemdotnim_Init000();
PreMainInner();
#endif
}
N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) {
NimMainModule();
}
N_CDECL(void, NimMain)(void) {
#if 0
void (*volatile inner)(void);
PreMain();
inner = NimMainInner;
(*inner)();
#else
PreMain();
NimMainInner();
#endif
}
int main(int argc, char** args, char** env) {
cmdLine = args;
cmdCount = argc;
gEnv = env;
NimMain();
return nim_program_result;
}
N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) {
{
echoBinSafe(TM__ipcYmBC9bj9a1BW35ABoB1Kw_2, 1);
nimTestErrorFlag();
}
}
| 1 | /* Generated by Nim Compiler v2.2.4 */ |
| 2 | #define NIM_INTBITS 64 |
| 3 | #define NIM_EmulateOverflowChecks |
| 4 | |
| 5 | #include "nimbase.h" |
| 6 | #undef LANGUAGE_C |
| 7 | #undef MIPSEB |
| 8 | #undef MIPSEL |
| 9 | #undef PPC |
| 10 | #undef R3000 |
| 11 | #undef R4000 |
| 12 | #undef i386 |
| 13 | #undef linux |
| 14 | #undef mips |
| 15 | #undef near |
| 16 | #undef far |
| 17 | #undef powerpc |
| 18 | #undef unix |
| 19 | typedef struct NimStrPayload NimStrPayload; |
| 20 | typedef struct NimStringV2 NimStringV2; |
| 21 | struct NimStrPayload { |
| 22 | NI cap; |
| 23 | NIM_CHAR data[SEQ_DECL_SIZE]; |
| 24 | }; |
| 25 | struct NimStringV2 { |
| 26 | NI len; |
| 27 | NimStrPayload* p; |
| 28 | }; |
| 29 | typedef NimStringV2 tyArray__nHXaesL0DJZHyVS07ARPRA[1]; |
| 30 | N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringV2* args_p0, NI args_p0Len_0); |
| 31 | N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); |
| 32 | N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotchoosenimatstoolchainsatsnimminus2dot2dot4atslibatssystemdotnim_Init000)(void); |
| 33 | N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); |
| 34 | static const struct { |
| 35 | NI cap; NIM_CHAR data[16+1]; |
| 36 | } TM__ipcYmBC9bj9a1BW35ABoB1Kw_3 = { 16 | NIM_STRLIT_FLAG, "raz dwa rzy test" }; |
| 37 | static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__ipcYmBC9bj9a1BW35ABoB1Kw_2 = {{16, (NimStrPayload*)&TM__ipcYmBC9bj9a1BW35ABoB1Kw_3}} |
| 38 | ; |
| 39 | |
| 40 | N_LIB_PRIVATE void PreMainInner(void) { |
| 41 | } |
| 42 | |
| 43 | N_LIB_PRIVATE int cmdCount; |
| 44 | N_LIB_PRIVATE char** cmdLine; |
| 45 | N_LIB_PRIVATE char** gEnv; |
| 46 | N_LIB_PRIVATE void PreMain(void) { |
| 47 | #if 0 |
| 48 | void (*volatile inner)(void); |
| 49 | inner = PreMainInner; |
| 50 | atmdotdotatsdotchoosenimatstoolchainsatsnimminus2dot2dot4atslibatssystemdotnim_Init000(); |
| 51 | (*inner)(); |
| 52 | #else |
| 53 | atmdotdotatsdotchoosenimatstoolchainsatsnimminus2dot2dot4atslibatssystemdotnim_Init000(); |
| 54 | PreMainInner(); |
| 55 | #endif |
| 56 | } |
| 57 | |
| 58 | N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { |
| 59 | NimMainModule(); |
| 60 | } |
| 61 | |
| 62 | N_CDECL(void, NimMain)(void) { |
| 63 | #if 0 |
| 64 | void (*volatile inner)(void); |
| 65 | PreMain(); |
| 66 | inner = NimMainInner; |
| 67 | (*inner)(); |
| 68 | #else |
| 69 | PreMain(); |
| 70 | NimMainInner(); |
| 71 | #endif |
| 72 | } |
| 73 | |
| 74 | int main(int argc, char** args, char** env) { |
| 75 | cmdLine = args; |
| 76 | cmdCount = argc; |
| 77 | gEnv = env; |
| 78 | NimMain(); |
| 79 | return nim_program_result; |
| 80 | } |
| 81 | |
| 82 | N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { |
| 83 | { |
| 84 | echoBinSafe(TM__ipcYmBC9bj9a1BW35ABoB1Kw_2, 1); |
| 85 | nimTestErrorFlag(); |
| 86 | } |
| 87 | } |