Pixel Perfect
Member
|
[SOLVED] Error with Esenthel Script
The code does not get translated correctly when using the suffix const after a function in Esenthel script.
example:
Code:
bool EKIDataSynchronizationChannel::HasNextDataChangeFromEKI(void) const
{
...
}
bool EKIDataSynchronizationChannel::HasNextDataChangeForEKI(void) const
{
...
}
generates the following in the respective header file:
Code:
bool EKIDataSynchronizationChannel::HasNextDataChangeFromEKI(void) c;onst
bool EKIDataSynchronizationChannel::HasNextDataChangeForEKI(void) c;onst
(This post was last modified: 08-18-2013 08:32 AM by Pixel Perfect.)
|
|
08-17-2013 10:42 PM |
|
Ozmodian
Member
|
RE: Error with Esenthel Script
If you try puting just the "C" in ES, does that work?
|
|
08-18-2013 01:50 AM |
|
Esenthel
Administrator
|
RE: Error with Esenthel Script
Hi,
I've just tried this code in EE:
Code:
class EKIDataSynchronizationChannel
{
bool HasNextDataChangeFromEKI(void) const;
bool HasNextDataChangeForEKI(void) const;
}
bool EKIDataSynchronizationChannel::HasNextDataChangeFromEKI(void) const
{
return false;
}
bool EKIDataSynchronizationChannel::HasNextDataChangeForEKI(void) const
{
return false;
}
which properly translates into:
Code:
/******************************************************************************/
#include "stdafx.h"
#include "../Source/$$headers.h"
/******************************************************************************/
bool EKIDataSynchronizationChannel::HasNextDataChangeFromEKI(void) const
{
return false;
}
bool EKIDataSynchronizationChannel::HasNextDataChangeForEKI(void) const
{
return false;
}
/******************************************************************************/
// CLASS STATIC MEMBERS
/******************************************************************************/
// CLASS METHODS
/******************************************************************************/
note: I'm using unreleased version of EE, but I'm not sure if I made some changes related to this that would make it work.
This version should be released today.
|
|
08-18-2013 02:03 AM |
|
Pixel Perfect
Member
|
RE: Error with Esenthel Script
@Ozmodian ... many thanks, just tried it and substituting the define "C" works
@Grzegorz ... thanks, I'll try that too
|
|
08-18-2013 08:31 AM |
|