flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Where is the error here?

Author
Thread Post new topic Reply to topic
NULLPointer



Joined: 28 May 2004
Posts: 11
NULLPointer 28 May 2004, 01:47
I've modified some OOP macros i found in this forum but i get an error of "unexpected end of file", but i don't know why or where is the error, the macros are the following:

macro class class_name, [class_fields]
{
if defined defining
display '(EEE) en clase ', `class_name, ': clases anidadas no permitidas', 13, 10
end if

defining equ `class_name
current_class fix class_name

struc class_name
__%
.vtable_ptr rd 1
common
class_fields
%__


}

__% fix {
%__ fix }

macro endclass
{
if ~ defined defining
display '(EEE) : macro "endclass" no precedida por macro "class"', 13, 10
end if
restore defining
restore current_class
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

I get the error message when i try to create a object instance in this way:

; class definition
class RootClass, \
.fd_counter rb 1 \
.fd_flag rb 1
endclass

; object instances
myObj1 RootClass
myObj2 RootClass

Hope someone can help me.
Thank you all.
Post 28 May 2004, 01:47
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.