GLBasic forum

Feature request => IDE/Syntax => Topic started by: bigsofty on 2011-Sep-07

Title: IMPORT default params
Post by: bigsofty on 2011-Sep-07
A small example will explain this better...

Code (glbasic) Select
IMPORT "C" int __stdcall foo(int mesh, float px, float py, float pz)

could have the syntax

Code (glbasic) Select
IMPORT "C" int __stdcall foo(int mesh, float px=1, float py=1, float pz=1)

allowing

Code (glbasic) Select
foo(10)

which equates to...

Code (glbasic) Select
foo(10,1,1,1)