Go Back > Extra Stuff > Programming

Thread Tools
Old 2011-03-05, 20:56   #1
Nov 2010

4C16 Posts
Default macros in nasm


I'm trying to get to compile with NASM a piece of code like this:
%define IFNDEF %ifndef
%define ENDIF %endif

nasm -E shows:
%line 3+1 test.mac

%ifndef foo

what is basicaly what I want to achive (and in this form it compiles), but when I attempt compilation just invoking nasm I get:
test.mac:4: error: label or instruction expected at start of line
test.mac:6: error: label or instruction expected at start of line
I'm probably doing sth wrong, any thoughts ?

Last fiddled with by tichy on 2011-03-05 at 20:58
tichy is offline   Reply With Quote
Old 2011-03-06, 16:24   #2
Nov 2010

22·19 Posts

Closed - I got it solved.
tichy is offline   Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU specific macros R.D. Silverman Programming 17 2015-09-29 03:44
List of nvcc compiler macros? ewmayer GPU Computing 8 2013-10-13 00:46

All times are UTC. The time now is 11:27.

Tue Oct 26 11:27:01 UTC 2021 up 95 days, 5:56, 0 users, load averages: 2.06, 2.35, 2.33

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.