kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Possible Macro Nesting Bug #71

Closed GendoIkari closed 12 years ago

GendoIkari commented 12 years ago
; --------------------------------------------
; Title:   Macro Nesting Bug 0x1
; Author:  gendo
; Date:    29/04/2012
; Reproduced with: Devkit-1.7-Beta-Preview-NoInstaller.zip
; --------------------------------------------

#macro one() {
    set a, 0x1
}

#macro two(param1, param2, param3) {
    one
    set a, param1
    set b, param2
    set c, param3
}

:main
    two 0x1, 0x2, 0x3
    set pc, main

Error InternalCompilerException Internal compiler exception on pass Pass2ExpandMacros: Object reference not set to an instance of an object. (none) 0

kierenj commented 12 years ago

That should definitely work, sorry for the inconvenience. Will look into this as a priority!

Thanks Kieren

Sent from my iPhone

On 29 Apr 2012, at 19:01, Gendo Ikarireply@reply.github.com wrote:

; --------------------------------------------
; Title:   Macro Nesting Bug 0x1
; Author:  gendo
; Date:    29/04/2012
; Reproduced with: Devkit-1.7-Beta-Preview-NoInstaller.zip
; --------------------------------------------

#macro one() {
   set a, 0x1
}

#macro two(param1, param2, param3) {
   one
   set a, param1
   set b, param2
   set c, param3
}

:main
   two 0x1, 0x2, 0x3
   set pc, main

Error InternalCompilerException Internal compiler exception on pass Pass2ExpandMacros: Object reference not set to an instance of an object. (none) 0


Reply to this email directly or view it on GitHub: https://github.com/kierenj/0x10c-DevKit/issues/71

kierenj commented 12 years ago

Fixed for the next release!