Page MenuHomeFeedback Tracker

Static definitions not reads in mission scripts
Assigned, UrgentPublic

Description

If add static definition (#define) in my mod scripts, scripts in mission folder not read this definition

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General
Steps To Reproduce

Add static definition in script in my mod

#define MyMod1

Try to check definition in mission scripts
For example - main() in native init.c

void main()
{
  #ifdef MyMod1
  Print("MyMod1 defined");
  #else
  Print("MyMod1 not defined");
  #endif

Compiller always compile string Print("MyMod1 not defined");

Event Timeline

borizz.k created this task.Dec 9 2020, 7:59 AM
borizz.k updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Dec 10 2020, 1:27 PM