mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 09:45:46 +00:00
Mark parameters as const
This commit is contained in:
parent
d9082de7ea
commit
cb42f51dc1
8 changed files with 11 additions and 11 deletions
|
@ -102,7 +102,7 @@ public:
|
|||
* @param code The macro byte code to execute
|
||||
* @param parameters The parameters of the macro
|
||||
*/
|
||||
virtual void Execute(std::vector<u32>& parameters, u32 method) = 0;
|
||||
virtual void Execute(const std::vector<u32>& parameters, u32 method) = 0;
|
||||
};
|
||||
|
||||
class MacroEngine {
|
||||
|
@ -113,7 +113,7 @@ public:
|
|||
void AddCode(u32 method, u32 data);
|
||||
|
||||
// Compiles the macro if its not in the cache, and executes the compiled macro
|
||||
void Execute(u32 method, std::vector<u32>& parameters);
|
||||
void Execute(u32 method, const std::vector<u32>& parameters);
|
||||
|
||||
protected:
|
||||
virtual std::unique_ptr<CachedMacro> Compile(const std::vector<u32>& code) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue