Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/CLI/include/Luau/ReplRequirer.h
2727 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
#include "Luau/Require.h"
5
6
#include "Luau/Compiler.h"
7
#include "Luau/VfsNavigator.h"
8
9
#include "lua.h"
10
11
#include <string>
12
13
void requireConfigInit(luarequire_Configuration* config);
14
15
struct ReplRequirer
16
{
17
using CompileOptions = Luau::CompileOptions (*)();
18
using BoolCheck = bool (*)();
19
using Coverage = void (*)(lua_State*, int);
20
21
ReplRequirer(
22
CompileOptions copts,
23
BoolCheck coverageActive,
24
BoolCheck codegenEnabled,
25
Coverage coverageTrack,
26
BoolCheck countersActive,
27
Coverage countersTrack
28
);
29
30
CompileOptions copts;
31
BoolCheck coverageActive;
32
BoolCheck codegenEnabled;
33
Coverage coverageTrack;
34
BoolCheck countersActive;
35
Coverage countersTrack;
36
37
VfsNavigator vfs;
38
};
39
40