Author Topic: Determine Parameter Type  (Read 9089 times)

Offline Structure

  • Jr. Member
  • *
  • Posts: 21
Determine Parameter Type
« on: February 02, 2020, 09:18:14 PM »
How can i find out the parameter type passed to a macro...

Code: [Select]
runMacro dbString
Code: [Select]
runMacro "string"
I believe the compiler recognizes both of these as strings?
How can i differentiate between these two and run different commands based on that ?

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 224
  • Country: gb
    • GPUZoo
Re: Determine Parameter Type
« Reply #1 on: February 03, 2020, 12:15:15 AM »
If dbString is defined as

#define dbString "string"

or

dbString db "string"

then the two will be seen as the same when assembled. I am not aware of a way for the two to be differentiated with the two lines you posted. This is because the preprocessor substitutes "string" where it sees dbString.
« Last Edit: February 04, 2020, 07:07:59 AM by debs3759 »
My graphics card database: www.gpuzoo.com