Function

CogPlatformget

Declaration [src]

CogPlatform*
cog_platform_get (
  void
)

Description [src]

Gets the platform instance.

The platform module instance is a singleton. The instance will be created if needed, but cog_init() can be used to control at which point it shall be created and which particular module to use.

This function is thread-safe.

Available since:0.20

Return value

Returns: CogPlatform
 

The platform instance.

 The data is owned by the called function.