Replace assert() -> BT_ASSERT() and some preconditions with BT_ASSERT_PRE()
[babeltrace.git] / include / babeltrace / values-internal.h
index 80981d9c2f214400c281beee8f6586acd6a0b110..31f508c8e67b5e1ecdca528ada688f1d5eeb95a4 100644 (file)
 
 #include <babeltrace/values.h>
 
+BT_HIDDEN
+enum bt_value_status _bt_value_freeze(struct bt_value *object);
+
+#ifdef BT_DEV_MODE
+# define bt_value_freeze       _bt_value_freeze
+#else
+# define bt_value_freeze(_value)
+#endif /* BT_DEV_MODE */
+
 static inline
 const char *bt_value_status_string(enum bt_value_status status)
 {
        switch (status) {
-       case BT_VALUE_STATUS_FROZEN:
-               return "BT_VALUE_STATUS_FROZEN";
-       case BT_VALUE_STATUS_CANCELLED:
-               return "BT_VALUE_STATUS_CANCELLED";
+       case BT_VALUE_STATUS_CANCELED:
+               return "BT_VALUE_STATUS_CANCELED";
        case BT_VALUE_STATUS_INVAL:
                return "BT_VALUE_STATUS_INVAL";
        case BT_VALUE_STATUS_ERROR:
This page took 0.023279 seconds and 4 git commands to generate.