PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Edge Version

Hi,

Can you add a definition to EDGE for the current version?

Right now, E_VERSION is a string constant, so we can't use it to test the version. We give our code to several people, and each one of them is using a different version of EdgeLib, so we want to write something like that:

#if E_VERSION >= 3
font.BuildFont(true,ECOLOR_FUCHSIA);
#else
font.BuildTableVwf();
#endif

Gilad
Hi Gilad,

Thanks for the suggestion. We will add a VERSION_EDGELIB definition to the upcoming release.
edge wrote:We will add a VERSION_EDGELIB definition to the upcoming release.


How will you handle minor version numbers (if at all)?
Hi Kuroneko,

You will be able to determine the minor version number by dividing the definition by 100. For example, EDGELIB version 3.10 will be defined as:

Code:

#define E_VERSION_NR 310


This is the same method used for DEVICE_SYMBIAN and DEVICE_WINMOBILE.
edge wrote:You will be able to determine the minor version number by dividing the definition by 100.


e.g. 310/100=3, that looks more like the major version but I get the idea ;) Thanks!
You are right, my bad :oops: