[BUG] Variables inside blocks couldn't shadow those outside [FEAT] Decompiler shows address of each opcode
18 lines
519 B
C++
18 lines
519 B
C++
#pragma once
|
|
#include <string>
|
|
#include <stdint.h>
|
|
|
|
void scope_init();
|
|
const bool scope_is_local();
|
|
void scope_open_local();
|
|
const int scope_close_local();
|
|
void scope_open_block();
|
|
void scope_close_block();
|
|
|
|
const int scope_declare_variable(const std::string name, const uint32_t type, const uint32_t length);
|
|
|
|
const bool scope_variable_exists(const std::string name, const bool can_shadow = false);
|
|
const uint32_t scope_get_variable_address();
|
|
const int scope_get_variable_size();
|
|
const int scope_get_variable_type();
|