pmake/src/pmake.h

26 lines
431 B
C
Raw Normal View History

2026-05-08 02:59:11 +09:00
#ifndef __PMAKE_H__
#define __PMAKE_H__
2026-05-08 05:18:35 +09:00
#include "config.h"
2026-05-08 02:59:11 +09:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <duktape.h>
#include <stb_ds.h>
2026-05-08 05:18:35 +09:00
#define LOAD(name) \
extern unsigned char name[]; \
2026-05-08 05:35:07 +09:00
extern unsigned int name##_len;
2026-05-08 05:18:35 +09:00
2026-05-08 05:35:07 +09:00
#define X(name, prefix) LOAD(prefix##_##name)
2026-05-08 05:25:34 +09:00
JS;
2026-05-08 05:18:35 +09:00
#undef X
/* js.c */
extern duk_context* js_context;
2026-05-08 05:35:07 +09:00
int js_init(int argc, char** argv);
void js_uninit(void);
2026-05-08 05:18:35 +09:00
2026-05-08 02:59:11 +09:00
#endif