microsoft / DTrace-on-Windows

Code for the cross platform, single source, OpenDTrace implementation
Other
473 stars 42 forks source link

Enable preprocessing in DTrace on Windows #29

Closed CodeMaxx closed 1 year ago

CodeMaxx commented 1 year ago

Why is this change being made?

Currently, DTrace on Windows does not do any preprocessing on the input file.

This prevents us from using macros (#include, #assert, #if, ...), including other source files, etc.

The idea was to integrate an existing open-source preprocessor and ship it as a built-in for Dtrace on Windows.

What changed?

  1. Integrated ucpp, a C preprocessor compliant with ISO-C99, into DTrace on Windows
  2. Added a cgmanifest.json file to track our Open Source usage in DTrace on Windows
  3. Added a NOTICE.md to provide notice of the licenses for opendtrace and ucpp

How was the change tested?

Tested manually on my machine