THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/08/2009 at 16:15, xxxxxxxx wrote:
Yeah, I've batted around the idea of creating an opensource project to generate "COFFEE beans". Ultimately I never end up with enough time to get it off the ground.
Here's some sample code though in case it helps:
> \> void GetMachineFeatures(Coffee\* Co, VALUE \*&sp;, LONG argc) { \> BaseContainer machineInfo = GetMachineFeatures(); \> GeCoffeeGeData2Value(Co, machineInfo, &sp;[argc]); \> sp += argc; \> } \> \> void GetSystemEnvironmentVariable(Coffee\* Co, VALUE \*&sp;, LONG argc) { \> String varname; \> varname = sp[argc-1].GetString(); \> \> String result; \> if(GetSystemEnvironmentVariable(varname, result)) { \> GeCoffeeGeData2Value(Co, result, &sp;[argc]); \> sp += argc; \> } else { \> RetFalse(); \> } \> } \> \> Coffee \*cof = GetCoffeeMaster(); \> if(!cof) return FALSE; \> \> cof->AddGlobalFunction("GetMachineFeatures",GetMachineFeatures) \> cof->AddGlobalFunction("GetSystemEnvironmentVariable",GetSystemEnvironmentVariable)) \> } \>