forked from pyrite-dev/pmake
38 lines
650 B
C
38 lines
650 B
C
#ifndef __PMAKE_H__
|
|
#define __PMAKE_H__
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#ifdef _WIN32
|
|
#include <direct.h>
|
|
#else
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
#include <duktape.h>
|
|
#include <stb_ds.h>
|
|
|
|
#define LOAD(name) \
|
|
extern unsigned char name[]; \
|
|
extern unsigned int name##_len;
|
|
|
|
#define X(name, prefix) LOAD(prefix##_##name)
|
|
JS;
|
|
#undef X
|
|
|
|
/* js.c */
|
|
extern duk_context* js_ctx;
|
|
int js_init(int argc, char** argv);
|
|
int js_run(const char* file, void (*call)(const char*));
|
|
void js_uninit(void);
|
|
|
|
/* js_*.c */
|
|
void js_console_init(void);
|
|
void js_process_init(void);
|
|
void js_fs_init(void);
|
|
|
|
#endif
|