prosperon/source/engine/ffi.h

21 lines
372 B
C
Raw Normal View History

2023-01-10 07:13:00 -06:00
#ifndef FFI_H
#define FFI_H
#include "duktape.h"
#include <chipmunk/chipmunk.h>
2023-01-10 07:13:00 -06:00
void ffi_load();
void duk_dump_stack(duk_context *duk);
duk_idx_t vect2duk(cpVect v);
cpVect duk2vec2(duk_context *duk, int p);
void bitmask2duk(duk_context *duk, cpBitmask mask);
cpBitmask duk2bitmask(duk_context *duk, int p);
struct color duk2color(duk_context *duk, int p);
#endif