CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/shellcode/windows/templates/inc/nasm.inc
Views: 11789
;                       GENERAL MACROS FOR NASM v1.0a
;                       =============================


;NASM.INC_NO_WARNING => ne pas afficher les warnings utilisateurs


;Error include(sans .INC),message
;Warning include(sans .INC),message

;MultiParams p
; -> MultiParams_Ret = nombre de param�tres

;================================= General ===================================
%ifndef _NASM.INC
%define _NASM.INC

%push _NASM.INC ;pour �viter erreurs %ifctx

%macro NASM.INC 0
 %undef NASM.INC_NO_WARNING
 %assign ErrorWarning_Assign 0
%endmacro

%macro NASM.INC~ 0
 NASM.INC
%endmacro

NASM.INC

%macro Error 2+
 ErrorWarningNext
 %error %1.INC error: %2
%endmacro

%macro Warning 2+
 %ifndef NASM.INC_NO_WARNING
  ErrorWarningNext
  %error %1.INC warning: %2
 %endif
%endmacro

%macro ErrorWarningNext 0
 %assign ErrorWarning_Assign ErrorWarning_Assign+1
 %if ErrorWarning_Assign==1
  %error ===============================================
 %endif
%endmacro

%macro MultiParams 1-*
 %define MultiParams_Ret %0
%endmacro

%endif