You are here

PBHGEN - PureBasic Header Generator

Description:Will read a PureBasic source file (*.pb) and generate a header out of it (*.pbi).
 PBHGEN
Usage:
  1. Under "Tools" in the PureBasic IDE add a new tool called "PBHGEN".
  2. Follow these steps:
    • At Commandline select your copy of PBHGEN.exe
    • At Arguments type %FILE.
    • At Event to trigger the tool select Sourcecode Saved.
  3. Ensure you include your headers in the Source using:
    • XIncludeFile #PB_Compiler_File + "i" ;- PBHGEN

At the moment if you wish to have a procedure with structured List/Array/Map arguments, you will have to put that procedure above the code where you call it from.
This does not apply when using basic types and is a limitation of PureBasic.

Version: 0.9 Download: click here to download your file.

Comments

Henry00's picture

Fixed issue with Structure Pointers in Procedure Parameters, transforms to Pointers now.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Fixed issue with Structured List/Array/Map in Procedure Parameters.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Fixed issue where a *pointer would cause further Procedure Parameters to lose their types.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Fixed issue where a *pointer.structure had no default parameter.
Fixed issue with a string as custom parameter, it was not escaped.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Fixed issue where array arguments would still have impossible structures.
Added support for structured List/Array/Map arguments with some conditions.
Added support for all basic types when used with List/Array/Map arguments.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Stops when encountering the statement seperator ":" or comment ";" operators.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Fixed issue with a space in the directory/file path of source file.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers

Henry00's picture

Fixed issue with multiline arguments. Thanks majikeyric for pointing this out.

Henry00³ ( de Jongh )
00laboratories, Solutions for Developers