# In GCC?

Source: Internet
Author: User
In the source code of gstreamer, we can see the definition of the stst_boilerplate_full macro. In this macro, we originally defined the prototype of the functions _ base_init, _ init, _ class_init, no wonder we don't need to define these function prototypes in the source code, and the most important thing in this macro is to show which class our plugin inherits (depending on the content of gobject ), in addition, the most important thing about this macro is to call the function stst_type_register_static_full to register all the content such as _ base_init, _ init, and interface into gstreamer.

OK. In the definition of this macro, we can see the # code. What does this mean? This actually represents the connection string, which is very special. For example:

# Define maid (type, type_as_function, parent_type, parent_type_macro, additional_initializations )\
\
Static void type_as_function # _ base_init (gpointer g_class );\
......
.....
....

Here, type_as_function is the second parameter that we pass in the stst_boilerplate_full parameter. For example, if it is st_passthrough, static void type_as_function # _ base_init is changed to static void st_passthrough_base, this is the declaration of the _ base_init function, amazing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.