LeviLamina
Loading...
Searching...
No Matches
MolangProgramBuildState.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Molang::details { class IInstruction; }
8namespace brstd { struct source_location; }
9// clang-format on
10
11namespace Molang::details {
12
14public:
15 // member variables
16 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCNAPI uint64 allocateInstruction();
32
33 MCNAPI void emplaceInstruction(::std::unique_ptr<::Molang::details::IInstruction> instruction);
34
36 uint64 instructionIndexToPutThisInstruction,
37 uint64 instructionToJumpTo,
38 float mulValue,
39 float addValue,
41 );
42
43 MCNAPI uint64 numInstructions() const;
44
45 MCNAPI void popForEachScope(uint64 instructionIndex);
46
47 MCNAPI void popLoopScope(uint64 instructionIndex);
48
49 MCNAPI void pushLoopScope(
50 uint64 loopScopeInitializationInstructionIndex,
51 uint64 loopRepeatLogicInstructionIndex,
52 uint64 loopCleanupInstructionIndex,
53 uint64 nextStatementIndex,
55 );
56
58
59 MCNAPI void setReturnValue(float value, ::brstd::source_location source);
60
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69};
70
71} // namespace Molang::details
Definition MolangProgramBuildState.h:13
MCAPI void popLoopScope(uint64 instructionIndex)
MCAPI void popForEachScope(uint64 instructionIndex)
MCAPI void insertJumpWithMaddAtIndex(uint64 instructionIndexToPutThisInstruction, uint64 instructionToJumpTo, float mulValue, float addValue, ::brstd::source_location source)
MCAPI void setReturnValue(float value, ::brstd::source_location source)
MCAPI void pushLoopScope(uint64 loopScopeInitializationInstructionIndex, uint64 loopRepeatLogicInstructionIndex, uint64 loopCleanupInstructionIndex, uint64 nextStatementIndex, ::brstd::source_location source)
MCAPI void pushReturnValue(::brstd::source_location source)
MCAPI void emplaceInstruction(::std::unique_ptr<::Molang::details::IInstruction > instruction)
Definition source_location.h:7
Definition Alias.h:14