[retro-gtk/stable-api] Drop the RETRO_GTK_USE_UNSTABLE_API guard



commit 050d977068edb828fe52966cb8f9bb6338864656
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Jan 19 11:04:21 2020 +0100

    Drop the RETRO_GTK_USE_UNSTABLE_API guard
    
    Drop the need to acklowledge the API's unstability, as we will
    guarantee its stability.

 demos/meson.build             | 5 -----
 retro-gtk/meson.build         | 1 -
 retro-gtk/retro-gtk.h         | 4 ----
 tests/meson.build             | 5 -----
 tests/retro-reftest-file.h    | 1 -
 tests/retro-test-controller.h | 1 -
 6 files changed, 17 deletions(-)
---
diff --git a/demos/meson.build b/demos/meson.build
index 64676b8..945d5e1 100644
--- a/demos/meson.build
+++ b/demos/meson.build
@@ -1,11 +1,6 @@
-retro_demo_c_args = [
-  '-DRETRO_GTK_USE_UNSTABLE_API',
-]
-
 executable(
   'retro-demo',
   'retro-demo.c',
-  c_args: retro_demo_c_args,
   dependencies: retro_gtk_dep,
   gui_app: true,
   install: true,
diff --git a/retro-gtk/meson.build b/retro-gtk/meson.build
index d4321b7..d4771f2 100644
--- a/retro-gtk/meson.build
+++ b/retro-gtk/meson.build
@@ -118,7 +118,6 @@ retro_gtk_dep_sources = [
 if get_option('introspection')
   retro_gtk_gir_args = [
      '--quiet',
-    '-DRETRO_GTK_USE_UNSTABLE_API',
   ]
 
   retro_gtk_gir_includes = [
diff --git a/retro-gtk/retro-gtk.h b/retro-gtk/retro-gtk.h
index 94ae6d2..5e5ec03 100644
--- a/retro-gtk/retro-gtk.h
+++ b/retro-gtk/retro-gtk.h
@@ -4,10 +4,6 @@
 
 #define __RETRO_GTK_INSIDE__
 
-#ifndef RETRO_GTK_USE_UNSTABLE_API
-#error    retro-gtk is unstable API. You must define RETRO_GTK_USE_UNSTABLE_API before including retro-gtk.h
-#endif
-
 #include "retro-controller.h"
 #include "retro-controller-codes.h"
 #include "retro-controller-iterator.h"
diff --git a/tests/meson.build b/tests/meson.build
index 3d4ea2c..192b323 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -46,10 +46,6 @@ build_conf.set('testlibretrodir', join_paths(meson.build_root(), 'tests'))
 build_conf.set('testexecdir', join_paths(meson.build_root(), 'tests'))
 build_conf.set('testdatadir', join_paths(meson.source_root(), 'tests'))
 
-test_c_args = [
-  '-DRETRO_GTK_USE_UNSTABLE_API',
-]
-
 tests = [
   ['RetroCore', 'test-core', [], [retro_dummy_lib]],
 ]
@@ -61,7 +57,6 @@ foreach t : tests
   test_args = t.get(3)
 
   test_exe = executable(test_display_name, test_srcs,
-    c_args: test_c_args,
     dependencies: retro_gtk_dep,
     install: get_option('install-tests'),
     install_dir: installed_test_bindir,
diff --git a/tests/retro-reftest-file.h b/tests/retro-reftest-file.h
index b3de810..59357e0 100644
--- a/tests/retro-reftest-file.h
+++ b/tests/retro-reftest-file.h
@@ -21,7 +21,6 @@
 #pragma once
 
 #include <gio/gio.h>
-#define RETRO_GTK_USE_UNSTABLE_API
 #include <retro-gtk/retro-gtk.h>
 
 G_BEGIN_DECLS
diff --git a/tests/retro-test-controller.h b/tests/retro-test-controller.h
index 04df382..c305441 100644
--- a/tests/retro-test-controller.h
+++ b/tests/retro-test-controller.h
@@ -20,7 +20,6 @@
 
 #pragma once
 
-#define RETRO_GTK_USE_UNSTABLE_API
 #include <retro-gtk/retro-gtk.h>
 
 G_BEGIN_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]