Author Topic: maxStruct level  (Read 4117 times)

LiaoMi

  • Member
  • *****
  • Posts: 1055
maxStruct level
« on: July 10, 2016, 01:41:04 AM »
Hallo,

what is the maximum level of nested structures? The compiler reports that the structure incorrectly defined, but here everything is right!

Regards

qWord

  • Member
  • *****
  • Posts: 1475
  • The base type of a type is the type itself
    • SmplMath macros
Re: maxStruct level
« Reply #1 on: July 10, 2016, 01:51:51 AM »
Types must be declared before their usage.**
You must change the order of declaration. RMc is not defined anywhere.


**only exception: forward declaration with structure pointers, e.g. PS typedef ptr S where S is not declared so far.

MREAL macros - when you need floating point arithmetic while assembling!

qWord

  • Member
  • *****
  • Posts: 1475
  • The base type of a type is the type itself
    • SmplMath macros
Re: maxStruct level
« Reply #2 on: July 10, 2016, 01:59:43 AM »
The compiler reports
MASM, JWasm, HJwasm, ... are Assemblers :icon_exclaim:
MREAL macros - when you need floating point arithmetic while assembling!

LiaoMi

  • Member
  • *****
  • Posts: 1055
Re: maxStruct level
« Reply #3 on: July 10, 2016, 02:22:02 AM »
Hallo qWord,

RMc can be deleted, this is another series of similar structures which will generate an error. Thank you, the order indeed solves the problem. Apparently I've long did not write anything, but I do not recall that I faced with such difficulty.

The compiler reports
MASM, JWasm, HJwasm, ... are Assemblers :icon_exclaim:

Thank you for the correction  :icon14: