Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/CodeGen/include/luacodegen.h
2725 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
// Can be used to reconfigure visibility/exports for public APIs
5
#ifndef LUACODEGEN_API
6
#define LUACODEGEN_API extern
7
#endif
8
9
typedef struct lua_State lua_State;
10
11
// returns 1 if Luau code generator is supported, 0 otherwise
12
LUACODEGEN_API int luau_codegen_supported(void);
13
14
// create an instance of Luau code generator. you must check that this feature is supported using luau_codegen_supported().
15
LUACODEGEN_API void luau_codegen_create(lua_State* L);
16
17
// build target function and all inner functions
18
LUACODEGEN_API void luau_codegen_compile(lua_State* L, int idx);
19
20