Vp init: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
<C>int vp_init(int build)</C>
<C>int vp_init(int build)</C>
== Description ==
== Description ==
Initializes the VP API, this only has to be called once for every application.
Initializes the VP API, this only has to be called once for every application. It is used to check if the version used to build the application is compatible with the version used at runtime.
== Example ==
== Example ==
<C>
<C>

Revision as of 21:51, 16 March 2011

<C>int vp_init(int build)</C>

Description

Initializes the VP API, this only has to be called once for every application. It is used to check if the version used to build the application is compatible with the version used at runtime.

Example

<C> int err; if(err = vp_init(VP_BUILD))

   printf("Error initializing VP API(reason %d)\n", err);

</C>