• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Kross

  • sources
  • kde-4.12
  • kdelibs
  • kross
  • core
krossconfig.h
Go to the documentation of this file.
1 /***************************************************************************
2  * krossconfig.h
3  * This file is part of the KDE project
4  * copyright (C)2004-2006 by Sebastian Sauer (mail@dipe.org)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  * You should have received a copy of the GNU Library General Public License
15  * along with this program; see the file COPYING. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  ***************************************************************************/
19 
20 #ifndef KROSS_MAIN_KROSSCONFIG_H
21 #define KROSS_MAIN_KROSSCONFIG_H
22 
23 #include <kross/core/kross_export.h>
24 
25 #include <QtCore/QString>
26 #include <QtCore/QMetaType>
27 
28 namespace Kross {
29 
30  // Debugging enabled. Comment the line out to disable all kind of debugging.
31  #define KROSS_DEBUG_ENABLED
32 
33  #ifdef KROSS_DEBUG_ENABLED
34 
38  KROSSCORE_EXPORT void krossdebug(const QString &s);
39 
43  KROSSCORE_EXPORT void krosswarning(const QString &s);
44 
45  #else
46  // Define these to an empty statement if debugging is disabled.
47  #define krossdebug(x)
48  #define krosswarning(x)
49  #endif
50 
51  // Some more debug switches.
52  //#define KROSS_OBJECT_METACALL_DEBUG
53  //#define KROSS_METATYPE_DEBUG
54  //#define KROSS_INTERPRETER_DEBUG
55  //#define KROSS_ACTION_DEBUG
56  //#define KROSS_ACTIONCOLLECTION_DEBUG
57 
58  // The version number of Kross. For example the interpreters use
59  // it do be sure there are linked against the correct core version
60  // and if the numbers don't match, the interpreter is not loaded.
61  #define KROSS_VERSION 12
62 
63  // The export macro for interpreter plugins.
64  #define KROSS_EXPORT_INTERPRETER( InterpreterImpl ) \
65  extern "C" { \
66  KDE_EXPORT void* krossinterpreter(int version, Kross::InterpreterInfo* info) { \
67  if(version != KROSS_VERSION) { \
68  Kross::krosswarning(QString("Interpreter skipped cause provided version %1 does not match expected version %2.").arg(version).arg(KROSS_VERSION)); \
69  return 0; \
70  } \
71  return new InterpreterImpl(info); \
72  } \
73  }
74 
75  // The name of the interpreter's library. Those library got loaded
76  // dynamically during runtime. Comment out to disable compiling of
77  // the interpreter-plugin or to hardcode the location of the lib
78  // like I did at the following line.
79  //#define KROSS_PYTHON_LIBRARY "/home/kde4/koffice/_build/lib/krosspython.la"
80  #define KROSS_PYTHON_LIBRARY "krosspython"
81  #define KROSS_RUBY_LIBRARY "krossruby"
82  #define KROSS_KJS_LIBRARY "krosskjs"
83  #define KROSS_JAVA_LIBRARY "libkrossjava"
84  #define KROSS_FALCON_LIBRARY "krossfalcon"
85  #define KROSS_QTSCRIPT_LIBRARY "krossqts"
86  #define KROSS_LUA_LIBRARY "kloss"
87 
88 }
89 
90 #endif
91 
kross_export.h
QString
Kross::krosswarning
void krosswarning(const QString &s)
Warning function.
Definition: krossconfig.cpp:34
Kross::krossdebug
void krossdebug(const QString &s)
Debugging function.
Definition: krossconfig.cpp:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal