c:: prepended to custom code variables
-
hi guys, when i create a variable in custom code it gets prepended with c::
int count = 0;
when mq4 is built in code it will be:
int c::count = 0;but count isn't meant to be a global, it's meant to be a local variable, so it gives me errors because c::count isn't defined globally
anyone know how to stop the build from adding c:: to local variables in custom code?
-
So, I found a problem that happens only to some variable names, such as "size" or I guess "count". Yes, you have them as local variables and they should not be prepended with c:: or v::, because there is no Constant or Variable with such name. What I found is a bug in the function that does this prepend job and it happens only with certain names... it's a long story. I think I fixed this particular problem anyway.