Click here to Skip to main content
15,886,799 members
Articles / Programming Languages / C++

Building a simple C++ script compiler from Scintilla and CINT

Rate me:
Please Sign up or sign in to vote.
4.73/5 (25 votes)
8 Jul 2006CPOL7 min read 153.9K   7.6K   85  
How to build a simple C++ script compiler from Scintilla and CINT.
// qtcint.h

#define  __attribute__(x)

// Lie to CINT to make it go!
#ifdef __CINT__
typedef long long __int64;
typedef __int64 Q_UINT64;
typedef unsigned int uint;
static const int white = 0xff;
static const int black = 0x0;
typedef void* QTSFUNC;
class QPoint;
class QCursor {public:  const QPoint& pos(); };
typedef int Tag;
#define UINT_MAX qtcint_U_max
#define ULONG_MAX qtcint_UL_max

static unsigned int UINT_MAX;
static unsigned long ULONG_MAX;

// const bool FALSE=false;
// const bool TRUE=true;

#ifdef  Q_TYPENAME 
#undef  Q_TYPENAME 
#endif
#define  Q_TYPENAME 

#ifdef Q_EXPORT
#undef Q_EXPORT
#endif
#define Q_EXPORT

#ifdef Q_INLINE_TEMPLATES
# undef Q_INLINE_TEMPLATES
#endif
#define Q_INLINE_TEMPLATES

#define __declspec(fake) 
#ifdef dllimport
# undef dllimport
#endif
#define dllimport
#endif

// #include "limits.h"
#include <qt.h>
// #include <qgl.h>

#include "qtclasses.h"
#include "qtglobals.h"
#include "qtfunctions.h"

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions