1
0

log.nsh 371 B

123456789101112131415161718
  1. !ifndef NULLSOFT_NX_LOG_NSIS_HEADER
  2. !define NULLSOFT_NX_LOG_NSIS_HEADER
  3. !macro NX_Log __string
  4. System::Call "Kernel32::OutputDebugStringW(t s)" `${__string}`
  5. !macroend
  6. !define NX_Log "!insertmacro NX_Log"
  7. !macro NX_DLog __string
  8. !ifdef _DEBUG
  9. ${NX_Log} `${__string}`
  10. !endif
  11. !macroend
  12. !define NX_DLog "!insertmacro NX_DLog"
  13. !endif ;NULLSOFT_NX_LOG_NSIS_HEADER