mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-16 09:54:02 +01:00
32 lines
823 B
C++
32 lines
823 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 "Luau/Require.h"
|
|
|
|
#include "Luau/Compiler.h"
|
|
|
|
#include "lua.h"
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
void requireConfigInit(luarequire_Configuration* config);
|
|
|
|
struct ReplRequirer
|
|
{
|
|
ReplRequirer(
|
|
std::function<Luau::CompileOptions()> copts,
|
|
std::function<bool()> coverageActive,
|
|
std::function<bool()> codegenEnabled,
|
|
std::function<void(lua_State*, int)> coverageTrack
|
|
);
|
|
|
|
std::function<Luau::CompileOptions()> copts;
|
|
std::function<bool()> coverageActive;
|
|
std::function<bool()> codegenEnabled;
|
|
std::function<void(lua_State*, int)> coverageTrack;
|
|
|
|
std::string absPath;
|
|
std::string relPath;
|
|
std::string suffix;
|
|
};
|