wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

PHYSFS_getLinkedVersion

Get the version of PhysicsFS that is linked against your program.

Header File

Defined in <physfs.h>

Syntax

void PHYSFS_getLinkedVersion(PHYSFS_Version *ver);

Function Parameters

PHYSFS_Version * ver the PHYSFS_Version struct to fill in.

Remarks

If you are using a shared library (DLL) version of PhysFS, then it is possible that it will be different than the version you compiled against.

This is a real function; the macro PHYSFS_VERSION tells you what version of PhysFS you compiled against:

PHYSFS_Version compiled;
PHYSFS_Version linked;

PHYSFS_VERSION(&compiled);
PHYSFS_getLinkedVersion(&linked);
printf("We compiled against PhysFS version %d.%d.%d ...\n",
          compiled.major, compiled.minor, compiled.patch);
printf("But we linked against PhysFS version %d.%d.%d.\n",
          linked.major, linked.minor, linked.patch);

This function may be called safely at any time, even before PHYSFS_init().

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since PhysicsFS 1.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryPhysicsFS


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.