Hi,
The following code is executed multiple times and the variable values will continue to stack. How to reset it?
I need to recompile the code every time it is executed
PS: I have some difficulties in understanding C language programming and pointer variables
Thank you in advance for any suggestions and help!
david
![[Image: a.gif]](https://i.ibb.co/mcSHnL5/a.gif)
Macro Tcc2
The following code is executed multiple times and the variable values will continue to stack. How to reset it?
I need to recompile the code every time it is executed
PS: I have some difficulties in understanding C language programming and pointer variables
Thank you in advance for any suggestions and help!
david
![[Image: a.gif]](https://i.ibb.co/mcSHnL5/a.gif)
Macro Tcc2
dll- "" $str_add $a $b
__Tcc+ t
int compileOnce
;int compileOnce=32
__Tcc+ t
if !t.f or !compileOnce
,t.Compile("" "add" 0|compileOnce)
,&str_add=t.f
out str_add("hello" " world!")
#ret
char* add(char* a, char* b)
{
,printf("%s: a=%s, b=%s", __func__, a, b);
,strcat(a, b);
,return a;
}