Page 1 of 1

How to detect TypeOf(var) is a Pointer

Posted: Sat Nov 15, 2025 1:18 pm
by SMaag
is there a way to detect, that a defined var is a pointer?

Code: Select all

Define v, *p

Debug TypeOf(v)     ; return 21
Debug TypeOf(*p)    ; ruturn 21
Debug #PB_Integer   ; = 21
; both return as Type Integer!

Re: How to detect TypeOf(var) is a Pointer

Posted: Sat Nov 15, 2025 1:36 pm
by STARGĂ…TE
Names with a * in front are always pointers, and names without a * are always variables.
I do not understand the question.

Solved! How to detect TypeOf(var) is a Pointer

Posted: Sat Nov 15, 2025 2:39 pm
by SMaag
It is not possible. And it is not necessary.
I was completly wrong in my brain!

Re: How to detect TypeOf(var) is a Pointer

Posted: Sat Nov 15, 2025 3:56 pm
by SMaag
it is more complicated.

I opened a new task in the ASM Forum because it is generally an ASM Problem.

viewtopic.php?t=87903