[Nasm-bugs] [Bug 3392837] New: expand any %expr used in %warning/%error/%fatal
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Tue Mar 7 06:15:59 PST 2023
https://bugzilla.nasm.us/show_bug.cgi?id=3392837
Bug ID: 3392837
Summary: expand any %expr used in %warning/%error/%fatal
Product: NASM
Version: new feature request
Hardware: PC
OS: Linux
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: mikar_gibbros at yahoo.com
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: From OS distribution
; expand any %expr used in %warning/%error/%fatal
%define expr(=expr1) expr1
dd 0 ; $ - $$ = 4
%ixdefine _size $ - $$ ; preproccesor is able to turn the difference of two
labels into a constant expression
%warning size: _size
%warning size: expr(_size) ; my workaround macro
%warning size: %expr(_size) ; new feature request
; %warning pointer: expr($) ; error: non-constant expression in parameter 0 of
macro `expr'
; As of version 2.16.01 outputs:
; size: $ - $$
; size: 4
; %expr($ - $$)
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list