public static int ccode_attribute_cache_index = CodeNode.get_attribute_cache_index ();
protected CCodeBaseModule () {
+ if (Vala.get_build_version () != Vala.BUILD_VERSION) {
+ Report.error (null, "Integrity check failed (libvala %s doesn't match ccodegen %s)".printf (Vala.get_build_version (), Vala.BUILD_VERSION));
+ }
+
predefined_marshal_set = new HashSet<string> (str_hash, str_equal);
predefined_marshal_set.add ("VOID:VOID");
predefined_marshal_set.add ("VOID:BOOLEAN");
// initialize locale
Intl.setlocale (LocaleCategory.ALL, "");
+ if (Vala.get_build_version () != Vala.BUILD_VERSION) {
+ stderr.printf ("Integrity check failed (libvala %s doesn't match valac %s)\n", Vala.get_build_version (), Vala.BUILD_VERSION);
+ return 1;
+ }
+
if (Path.get_basename (args[0]) == "vala" || Path.get_basename (args[0]) == "vala" + Config.PACKAGE_SUFFIX) {
return run_source (args);
}
static int main (string[] args) {
Intl.setlocale (LocaleCategory.ALL, "");
+ if (Vala.get_build_version () != Vala.BUILD_VERSION) {
+ stderr.printf ("Integrity check failed (libvala %s doesn't match valadoc %s)\n", Vala.get_build_version (), Vala.BUILD_VERSION);
+ return 1;
+ }
+
try {
var opt_context = new OptionContext ("- Vala Documentation Tool");
opt_context.set_help_enabled (true);
static int main (string[] args) {
Intl.setlocale (LocaleCategory.ALL, "");
+
+ if (Vala.get_build_version () != Vala.BUILD_VERSION) {
+ stderr.printf ("Integrity check failed (libvala %s doesn't match vapigen %s)\n", Vala.get_build_version (), Vala.BUILD_VERSION);
+ return 1;
+ }
+
try {
var opt_context = new OptionContext ("- Vala API Generator");
opt_context.set_help_enabled (true);