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



commit a4dbcac94654211c3092f348ecff128f42165b8d
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             | 1 -
 tests/retro-reftest-file.h    | 1 -
 tests/retro-test-controller.h | 1 -
 6 files changed, 13 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 25a83b7..b337546 100644
--- a/retro-gtk/meson.build
+++ b/retro-gtk/meson.build
@@ -107,7 +107,6 @@ if get_option('introspection')
   retro_gtk_gir_args = [
     '--quiet',
     '-DRETRO_GTK_COMPILATION',
-    '-DRETRO_GTK_USE_UNSTABLE_API',
   ]
 
   retro_gtk_gir_includes = [
diff --git a/retro-gtk/retro-gtk.h b/retro-gtk/retro-gtk.h
index e5ef793..e3c1b10 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 c0074e3..709b8c6 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -48,7 +48,6 @@ build_conf.set('testdatadir', join_paths(meson.source_root(), 'tests'))
 
 test_c_args = [
   '-DRETRO_LOG_DOMAIN="Retro"',
-  '-DRETRO_GTK_USE_UNSTABLE_API',
 ]
 
 tests = [
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]