About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
[SOLVED] Error with Esenthel Script
Author Message
Pixel Perfect Offline
Member

Post: #1
[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
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #2
RE: Error with Esenthel Script
If you try puting just the "C" in ES, does that work?
08-18-2013 01:50 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
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
Find all posts by this user Quote this message in a reply
Pixel Perfect Offline
Member

Post: #4
RE: Error with Esenthel Script
@Ozmodian ... many thanks, just tried it and substituting the define "C" works smile

@Grzegorz ... thanks, I'll try that too
08-18-2013 08:31 AM
Find all posts by this user Quote this message in a reply
Post Reply