summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 798fe03)
raw | patch | inline | side by side (parent: 798fe03)
author | joncruz <joncruz@users.sourceforge.net> | |
Mon, 10 Mar 2008 04:10:10 +0000 (04:10 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Mon, 10 Mar 2008 04:10:10 +0000 (04:10 +0000) |
src/extension/script/InkscapeScript.cpp | patch | blob | history |
index 3007df39f47e37d462c89fb1bd7321007995d954..d5e694f3adbacd56f6896ba7cf4ad8d3cf9853f2 100644 (file)
#include "InkscapeScript.h"
-#include <bind/javabind.h>
+#undef USE_JAVA
+#include <bind/javabind.h>
namespace Inkscape
Glib::ustring &error,
ScriptLanguage language)
{
+#if USE_JAVA
const char *langname=NULL;
//if() instead of switch() lets us scope vars
if (language == InkscapeScript::JAVASCRIPT)
}
return true;
+#else // USE_JAVA
+ return false;
+#endif // USE_JAVA
}
Glib::ustring &error,
ScriptLanguage language)
{
+#if USE_JAVA
const char *langname=NULL;
//if() instead of switch() lets us scope vars
if (language == InkscapeScript::JAVASCRIPT)
g_warning("interpretFile: failed\n");
return false;
}
-
+
return true;
+#else // USE_JAVA
+ return false;
+#endif // USE_JAVA
}