| 662 | Â | <title>Custom code</title>Â |
| 663 | Â | <para>Â |
| 664 |  | Custom code may be added to your extension source files using the |
| 665 | Â | <literal><code></literal> tags. The <literal>role=...</literal>Â |
| 666 |  | and <literal>position=...</literal> tags specify the actual place |
| 667 |  | in there generated source files where your code should be |
| 668 |  | inserted. |
| 669 | Â | </para>Â |
| 670 | Â | <para>Â |
| 671 | Â | Possible roles are '<literal>code</literal>' (default) for the generated CÂ |
| 672 |  | or C++ code file and '<literal>header</literal>' header file. |
| 673 | Â | Possible positions are '<literal>top</literal>' and '<literal>bottom</literal>'Â |
| 674 |  | (default) for insertion near the beginning or end of the generated file. |
| 675 | Â | </para>Â |
| 676 | Â | </section>Â |
| 677 | Â | Â |
| 678 | Â | <section>Â |
| 679 | Â | <title>Conditional compilation</title>Â |
| 680 | Â | <para>Â |
| 681 |  | For some code elements it is possible to define conditional compilation |
| 682 |  | by using the <literal>if=...</literal> attribute. The argument to this |
| 683 |  | attribute is ment to be a valid C preprocessor expression which can be |
| 684 |  | used in an "#if" directive. |
| 685 | Â | </para>Â |
| 686 | Â | <para>Â |
| 687 |  | To compile in and register a function only if a certain library feature |
| 688 |  | is available you may simply use the <literal>HAVE_...</literal> macros |
| 689 | Â | that configure writes into config.h:Â |
|  | 663 | <title>�������ॳ����/title> |
| Â | 664 | <para>Â |
|  | 665 | �������ƥ󥷥��Υ������ե������Υ������ॳ���ɤ�ä����� <literal><code></literal> ������Ѥ��ޤ���<literal>role=...</literal> |
|  | 666 | ��<literal>position=...</literal> �ǡ� |
|  | 667 | ���Υ����ɤ�ݤΤɤΥ������ե������ɤ���ɲä�������ꤷ�ޤ��� |
| Â | 668 | </para>Â |
| Â | 669 | <para>Â |
|  | 670 | role �˻�ѤǤ����ϡ�'<literal>code</literal>' (�ǥե���) |
|  | 671 | �� '<literal>header</literal>' �Τ����줫�Ǥ��� |
|  | 672 | '<literal>code</literal>' ��C ��++ �Υ����ɥե����롢 |
|  | 673 | '<literal>header</literal>' �ϥإå�ե�����ɽ���ޤ��� |
|  | 674 | position �˻��������'<literal>top</literal>' �� '<literal>bottom</literal>' |
|  | 675 | (�ǥե���) �Τ����줫�ǡ� |
|  | 676 | ���줾��������ե������Ƭ��ᡢ�����������ޤ��� |
| Â | 677 | </para>Â |
| Â | 678 | </section>Â |
| Â | 679 | Â |
| Â | 680 | <section>Â |
|  | 681 | <title>��դ��������title> |
| Â | 682 | <para>Â |
|  | 683 | <literal>if=...</literal> °���Ѥ����� |
|  | 684 | ��դ����������ꤹ�뤳�Ȥ��Ǥ��ޤ����������ΰ��ϡ� |
|  | 685 | "#if" �ǥ��쥯�ƥ��֤ǻ�ѤǤ������� C ï¿½×¥ï¿½ï¿½í¥»ï¿½Ã¥ï¿½ï¿½Î¼ï¿½ï¿½ï¿½ê¤·ï¿½Þ¤ï¿½ï¿½ï¿½Â |
| Â | 686 | </para>Â |
| Â | 687 | <para>Â |
|  | 688 | ���Υ饤�֥����Ȥ������ˤΤߴؿ������뤷�����������Ȥ������ϡ� |
|  | 689 | ñ�� <literal>HAVE_...</literal> �ޥ����Ȥ����Ȥ����ޤ��� |
|  | 690 | ������ config.h �˽ñ¤¹ï¿½ï¿½Þ¤ï¿½ï¿½ï¿½ï¿½ï¿½Â |