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

PHYSFS_VERSION

Macro to determine PhysicsFS version program was compiled against.

Header File

Defined in <physfs.h>

Syntax

#define PHYSFS_VERSION(x) \
{ \
    (x)->major = PHYSFS_VER_MAJOR; \
    (x)->minor = PHYSFS_VER_MINOR; \
    (x)->patch = PHYSFS_VER_PATCH; \
}

Macro Parameters

x A pointer to a PHYSFS_Version struct to initialize.

Remarks

This macro fills in a PHYSFS_Version structure with the version of the library you compiled against. This is determined by what header the compiler uses. Note that if you dynamically linked the library, you might have a slightly newer or older version at runtime. That version can be determined with PHYSFS_getLinkedVersion(), which, unlike PHYSFS_VERSION, is not a macro.

Thread Safety

It is safe to call this macro from any thread.

Version

This macro is available since PhysicsFS 1.0.0.

See Also


CategoryAPI, CategoryAPIMacro, 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.