# wxdkct

Wxdkct is a preprocessor for C, C++ and Objective-C for the following purposes:

- One module - one source file.
  The *.h and *.c (or *.cpp, *.m) files are created from one source file.
- Trace and debug messages.
  A special notation is used for trace and debug messages in wxdkct source files. Depending on the conversion options C code is generated to write debug messages to file or to standard output. When producing code for a release, C code without debug messages is generated.
- Code generator for state machines.
  In a wxdkct source file you can describe a state machine using lookup tables. Wxdkct generates C code using nested if and switch constructs from it.
  A lookup table is easier to maintain but code without lookups executes faster. This code generator combines advantages of both methods.
- Code generator for wxWidgets based GUIs
  C++ code section for GUI layout are often long and complicated. Using wxdkct you can describe your GUI in an ini-file style section in the *.wxc file.
  The code generator creates member variables declarations in the class definition and code for the constructor.

Further information about dkct and wxdkct - especially about the syntax for *.ctr and *.wxc files - is available at the Project page at SourceForge 〈1〉.

When running a conversion wxdkct processes all source files in the current directory. A typical usage scenario includes:

- Start wxdkct.
- Choose directory containing your sources (*.ctr, *.cpt, *.wxc, *.mtr, *.jtr files).
- Probably multiple times:
  - Edit one or more source files.
  - Set conversion options.
  - Run conversion.
  - Build software project.
  - Text new software version.
- Exit wxdkct.

## External links

1 | http://dktools.sourceforge.net/dkct