X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-debug.h;fp=src%2Fafb-debug.h;h=4723cd064c0749f28940e07a305d25750d4176bf;hb=846e952260278225b79de4062fff1f8f2145a544;hp=0000000000000000000000000000000000000000;hpb=71762eeb3fc6e89ee17be512d295d305b2664142;p=src%2Fapp-framework-binder.git diff --git a/src/afb-debug.h b/src/afb-debug.h new file mode 100644 index 00000000..4723cd06 --- /dev/null +++ b/src/afb-debug.h @@ -0,0 +1,29 @@ +/* + Copyright 2017 IoT.bzh + + author: José Bollo + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +#pragma once + +#if defined(AGL_DEVEL) && !defined(AFB_INSERT_DEBUG_FEATURES) +# define AFB_INSERT_DEBUG_FEATURES +#endif + +#if defined(AFB_INSERT_DEBUG_FEATURES) +extern void afb_debug(const char *key); +#else +#define afb_debug(x) ((void)0) +#endif