20 lines
729 B
C++
20 lines
729 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
#include <string>
|
|
|
|
// Register a new function. Returns false if a function with the same name already exists
|
|
const bool function_register(const std::string name, const uint32_t address);
|
|
|
|
// Add a parameter to the last registered function
|
|
void function_parameter_add(const std::string name, const int type);
|
|
|
|
|
|
// Retrieve the address of the specified function, or zero if there's no such function
|
|
const uint32_t function_get_address(const std::string name);
|
|
|
|
// Retrieve the number of parameters of the last searched function
|
|
const int function_get_num_parameters();
|
|
|
|
// Retrieve the type of the nth parameter of the last searched function
|
|
const int function_get_parameter_type(const int index);
|