RingRacers/libs/ACSVM/include/CAPI/Module.h
Sally Coolatta cb8dddbedc ACS basic implementation
- BEHAVIOR lumps successfully load & run from maps. Currently they do not get unloaded between maps, though.
- Print and Timer are the only implemented CallFuncs. All of the base language functions (Delay, etc) are already implemented by the VM though.
- ACS compiler files are included, for use with GDCC. (Picked instead of ACC because it's less ZDoom-centric)
- Additionally, also added the configs for Zone Builder to be able to compile it in editor. Syntax highlighting is very incomplete atm.
2022-10-04 03:23:17 -04:00

58 lines
1.2 KiB
C

//-----------------------------------------------------------------------------
//
// Copyright (C) 2015 David Hill
//
// See COPYING for license information.
//
//-----------------------------------------------------------------------------
//
// Modules.
//
//-----------------------------------------------------------------------------
#ifndef ACSVM__CAPI__Module_H__
#define ACSVM__CAPI__Module_H__
#include "Types.h"
#ifdef __cplusplus
#include "../ACSVM/Module.hpp"
#endif
#ifdef __cplusplus
extern "C" {
#endif
//----------------------------------------------------------------------------|
// Types |
//
//
// ACSVM_ModuleName
//
// ACSVM::ModuleName mirror.
//
struct ACSVM_ModuleName
{
ACSVM_String *s;
void *p;
size_t i;
};
//----------------------------------------------------------------------------|
// Extern Functions |
//
void ACSVM_Module_GetName(ACSVM_Module const *module, ACSVM_ModuleName *out);
// Returns false if reading fails.
bool ACSVM_Module_ReadBytecode(ACSVM_Module *module, ACSVM_Byte const *data, size_t size);
#ifdef __cplusplus
}
#endif
#endif//ACSVM__CAPI__Module_H__