Plugin

Plugins must be made for a post-task for presets on generate.d I don't still have much experience on how should I do it, but following a pattern will really help at those things

Members

Functions

convertToD_Pipe
string convertToD_Pipe()

Executed after main, this is the string to be processed/convert to D style declaration

getHelpInformation
string getHelpInformation()

Provides help information when every dll is loaded but no argument was passed

main
int main(string[] args)

Whether convertToD_Pipe can be called

onReturnControl
int onReturnControl(string processedStr)

Executed after generate processing

returnError
int returnError(string err)

Gets the error reason

target
string target()

Target for getting the options inside bindbc-generate

Variables

ERROR
enum int ERROR;

Should not process this plugin

SUCCESS
enum int SUCCESS;

If returned from main, the plugin should be processed

error
string error;

Set it directly before returning or use returnError function

hasFinishedExecution
bool hasFinishedExecution;

Internal use only, setting up this member yourself will have no effect

willConvertToD
bool willConvertToD;

Internal use only

Meta