mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
2f989fc049
- Improve refinement support for unions, in particular it's now possible to implement tagged unions as a union of tables where individual branches use a string literal type for one of the fields. - Fix `string.split` type information - Optimize `select(_, ...)` to run in constant time (~2.7x faster on VariadicSelect benchmark) - Improve debug line information for multi-line assignments - Improve compilation of table literals when table keys are constant expressions/variables - Use forward GC barrier for `setmetatable` which slightly accelerates GC progress
13 lines
414 B
C++
13 lines
414 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include "lua.h"
|
|
|
|
#include <string>
|
|
|
|
// Note: These are internal functions which are being exposed in a header
|
|
// so they can be included by unit tests.
|
|
int replMain(int argc, char** argv);
|
|
void setupState(lua_State* L);
|
|
std::string runCode(lua_State* L, const std::string& source);
|