mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +00:00
da0458bf6e
I'd like to experiment with the codegen feature (currently experimental) and need a public C API for this. This PR addresses this.
21 lines
426 B
C++
21 lines
426 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#include "luacodegen.h"
|
|
|
|
#include "Luau/CodeGen.h"
|
|
|
|
#include "lapi.h"
|
|
|
|
int luau_codegen_supported()
|
|
{
|
|
return Luau::CodeGen::isSupported();
|
|
}
|
|
|
|
void luau_codegen_create(lua_State* L)
|
|
{
|
|
Luau::CodeGen::create(L);
|
|
}
|
|
|
|
void luau_codegen_compile(lua_State* L, int idx)
|
|
{
|
|
Luau::CodeGen::compile(L, idx);
|
|
}
|