modules_inner.h
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:10k
- /*****************************************************************************
- * modules_inner.h : Macros used from within a module.
- *****************************************************************************
- * Copyright (C) 2001 VideoLAN
- * $Id: modules_inner.h 7690 2004-05-16 19:17:56Z gbazin $
- *
- * Authors: Samuel Hocevar <sam@zoy.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
- *****************************************************************************/
- /*****************************************************************************
- * If we are not within a module, assume we're in the vlc core.
- *****************************************************************************/
- #if !defined( __PLUGIN__ ) && !defined( __BUILTIN__ )
- # define MODULE_NAME main
- #endif
- /*****************************************************************************
- * Add a few defines. You do not want to read this section. Really.
- *****************************************************************************/
- /* Explanation:
- *
- * if user has #defined MODULE_NAME foo, then we will need:
- * #define MODULE_STRING "foo"
- *
- * and, if __BUILTIN__ is set, we will also need:
- * #define MODULE_FUNC( zog ) module_foo_zog
- *
- * this can't easily be done with the C preprocessor, thus a few ugly hacks.
- */
- /* I can't believe I need to do this to change