Remove a useless global variable.
[INTERPRETER] * BUG: Remove a useless global variable.
This commit is contained in:
parent
4a6031e49f
commit
8d8c8a71f8
4 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@
|
|||
//#define DEBUG_PRELOAD
|
||||
|
||||
COMPONENT *COMPONENT_current = NULL;
|
||||
COMPONENT *COMPONENT_main;
|
||||
//COMPONENT *COMPONENT_main;
|
||||
int COMPONENT_count = 0;
|
||||
char *COMPONENT_path;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ typedef
|
|||
EXTERN char *COMPONENT_path;
|
||||
EXTERN COMPONENT *COMPONENT_current;
|
||||
EXTERN int COMPONENT_count;
|
||||
EXTERN COMPONENT *COMPONENT_main;
|
||||
//EXTERN COMPONENT *COMPONENT_main;
|
||||
#endif
|
||||
|
||||
void COMPONENT_init(void);
|
||||
|
|
|
@ -78,11 +78,11 @@ void DEBUG_enter_eval(void);
|
|||
void DEBUG_leave_eval(void);
|
||||
|
||||
#define PROFILE_ENTER_FUNCTION() \
|
||||
if (EXEC_profile && CP && CP->component == COMPONENT_main) \
|
||||
if (EXEC_profile && CP && CP->component == NULL) \
|
||||
DEBUG.Profile.Begin(CP, FP); \
|
||||
|
||||
#define PROFILE_LEAVE_FUNCTION() \
|
||||
if (EXEC_profile && CP && CP->component == COMPONENT_main) \
|
||||
if (EXEC_profile && CP && CP->component == NULL) \
|
||||
DEBUG.Profile.End(CP, FP); \
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4016,7 +4016,7 @@ static void _break(ushort code)
|
|||
|
||||
//fprintf(stderr, "%s\n", DEBUG_get_current_position());
|
||||
|
||||
if (CP && CP->component == COMPONENT_main)
|
||||
if (CP && CP->component == NULL)
|
||||
{
|
||||
if (EXEC_profile_instr)
|
||||
DEBUG.Profile.Add(CP, FP, PC);
|
||||
|
|
Loading…
Reference in a new issue