yang parser CHANGE move YANG_CHECK_NONEMPTY to tree_schema_internal.h
so it can be reused in yin parser
diff --git a/src/parser_yang.c b/src/parser_yang.c
index e6aae12..09a774d 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -87,11 +87,6 @@
 #define YANG_CHECK_STMTVER2_RET(CTX, KW, PARENT) \
     if ((CTX)->mod_version < 2) {LOGVAL_PARSER((CTX), LY_VCODE_INCHILDSTMT2, KW, PARENT); return LY_EVALID;}
 
-#define YANG_CHECK_NONEMPTY(CTX, OBJECT, VALUE_LEN, STMT) \
-    if (!VALUE_LEN) { \
-        LOGWRN((CTX)->ctx, "Empty argument of %s statement does not make sense.", STMT); \
-    }
-
 LY_ERR parse_container(struct lys_parser_ctx *ctx, const char **data, struct lysp_node *parent, struct lysp_node **siblings);
 LY_ERR parse_uses(struct lys_parser_ctx *ctx, const char **data, struct lysp_node *parent, struct lysp_node **siblings);
 LY_ERR parse_choice(struct lys_parser_ctx *ctx, const char **data, struct lysp_node *parent, struct lysp_node **siblings);
diff --git a/src/tree_schema_internal.h b/src/tree_schema_internal.h
index 17bae89..2ae20d1 100644
--- a/src/tree_schema_internal.h
+++ b/src/tree_schema_internal.h
@@ -59,6 +59,11 @@
         } \
     }
 
+#define YANG_CHECK_NONEMPTY(CTX, OBJECT, VALUE_LEN, STMT) \
+    if (!VALUE_LEN) { \
+        LOGWRN((CTX)->ctx, "Empty argument of %s statement does not make sense.", STMT); \
+    }
+
 /**
  * @brief List of YANG statement groups - the (sub)module's substatements
  */