Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Define PINGUINO version
13-08-2014, 10:10 PM, (This post was last modified: 13-08-2014, 10:11 PM by Mario78.)
#1
Define PINGUINO version
Hi,
Developing libraries both for 10.4 and 11 (trunk) I found that certain funtions change its location, e.g. Delayms in 10.4 is in delay.c, and now is in delayms.c. It would be helpful if somewhere were defined a constant with the major version of Pinguino, maybe the minor also. It could be done only in the new trunk, in either case it would be possible to do an "if" and choose the right include. I'm suggesting something like :

#define PINGUINO_VERSION 11.1

perhaps in file core/const.h.
Thanks, Mario
Reply
14-08-2014, 04:18 PM,
#2
RE: Define PINGUINO version
Hi Mario,
Sorry for the late response. I was on holidays.
I agree with you. What about :
#define PINGUINO_MAJOR_VERSION 11
#define PINGUINO_MINOR_VERSION 1


(13-08-2014, 10:10 PM)Mario78 Wrote: Hi,
Developing libraries both for 10.4 and 11 (trunk) I found that certain funtions change its location, e.g. Delayms in 10.4 is in delay.c, and now is in delayms.c. It would be helpful if somewhere were defined a constant with the major version of Pinguino, maybe the minor also. It could be done only in the new trunk, in either case it would be possible to do an "if" and choose the right include. I'm suggesting something like :

#define PINGUINO_VERSION 11.1

perhaps in file core/const.h.
Thanks, Mario
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
14-08-2014, 05:18 PM,
#3
RE: Define PINGUINO version
Better than a floating point number Smile

John
Reply
15-08-2014, 06:27 PM,
#4
RE: Define PINGUINO version
That is the IDE version. It would be good to have versions for the compiler and core library, too.
Reply
16-08-2014, 03:25 AM,
#5
RE: Define PINGUINO version
(14-08-2014, 04:18 PM)regis Wrote: Hi Mario,
Sorry for the late response. I was on holidays.
I agree with you. What about :
#define PINGUINO_MAJOR_VERSION 11
#define PINGUINO_MINOR_VERSION 1

For me is Ok, but as noted below by djpark, this is the IDE version. May be is the same for the core libraries.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)