gcc/libjava/gnu/classpath/natConfiguration.cc
Tom Tromey 97b8365caf Merged gcj-eclipse branch to trunk.
From-SVN: r120621
2007-01-09 19:58:05 +00:00

40 lines
713 B
C++

// natConfiguration.cc - native code for configuration.
/* Copyright (C) 2006 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
#include <config.h>
#include <platform.h>
#include <gcj/cni.h>
#include <jvm.h>
#include <gnu/classpath/Configuration.h>
jstring
gnu::classpath::Configuration::classpath_home()
{
return JvNewStringLatin1(LIBGCJ_PREFIX);
}
jboolean
gnu::classpath::Configuration::debug()
{
#ifdef DEBUG
return true;
#else
return false;
#endif
}
jstring
gnu::classpath::Configuration::toolkit()
{
return JvNewStringLatin1(AWT_TOOLKIT);
}