HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2010
0509
¥æ¥¦#define¤ÎÆ°ºî¤Ë´Ø¤·¤Æ2²ò·è


¥æ¥¦

¥ê¥ó¥¯

2010/5/9(Sun) 08:55:20|NO.32570

¤Ï¤¸¤á¤Æ¼ÁÌ䤵¤»¤Æ¤¤¤¿¤À¤­¤Þ¤¹¡£

°Ê²¼¤ÎÍͤË#define¤ÇÄêµÁ¤·¤¿REF_LBL¤ò#include¤Ç
Æɤ߹þ¤â¤¦¤È¤¹¤ë¤È¥¨¥é¡¼¤¬È¯À¸¤·¡¢µ¯Æ°¤·¤Þ¤»¤ó¡£

¢¦main.hsp¡¿ËÜÂÎ

#module ;¢«Àµ¾ïÆ°ºî­¢#module¡¢#global¤òÄêµÁ¤·¤Ê¤¤ #define REF_LBL "ref_lbl.hsp" #global ;¢«Àµ¾ïÆ°ºî­¢#module¡¢#global¤òÄêµÁ¤·¤Ê¤¤ *main mes "*main" stop ;#include "ref_lbl.hsp" ;¢«Àµ¾ïÆ°ºî­¡¥Õ¥¡¥¤¥ë̾¤òľÀÜ»ØÄꤹ¤ë #include REF_LBL ;¢«#defineÄêµÁ¤·¤¿¤â¤Î¤À¤È¥¨¥é¡¼¤¬È¯À¸¤·¡¢µ¯Æ°¤·¤Ê¤¤

¢¦ref_lbl.hsp¡¿¥é¥Ù¥ë¤òÄêµÁ¤·¤¿¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ßÀìÍÑ¥Õ¥¡¥¤¥ë


#include "lbl1.hsp" #include "lbl2.hsp"

¢¦lbl1.hsp¡¿lbl2.hsp¤âƱÍÍ

*lbl1 mes "lbl1" return

¤·¤«¤·¥½¡¼¥¹Ãæ¤Ëµ­ºÜ¤·¤¿Ä̤ꡢ
­¡#include¤ËľÀÜ¥Õ¥¡¥¤¥ë̾¤ò»ØÄê
­¢#module¡¢#global¤òÄêµÁ¤·¤Ê¤¤
¤Î¤¤¤º¤ì¤«¤ÇÀµ¾ï¤Ëµ¯Æ°¤¹¤ëÍͤˤʤê¤Þ¤¹¡£

­¢¤Ï¤Þ¤À¤·¤â¡Ê#module¡¢#global¤òÄêµÁ¤·¤Ê¤¤¤Î¤Ï¤¢¤êÆÀ¤Ê¤¤¤È»×¤¦¤Î¤Ç¡Ë
­¡¤Ï¥á¥ó¥Æ¥Ê¥ó¥¹À­¤Î°Ù¤Ë½ÐÍè¤ì¤Ð²ò·è¤·¤¿¤¤¤È¹Í¤¨¤Æ¤¤¤Þ¤¹¡£

²ò·è¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï¥Õ¥¡¥¤¥ë̾¤ÎľÀܵ­Æþ¤Ç²¿¤È¤«¤Ê¤ê¤Þ¤¹¤¬¡¢
¸å³Ø¤Î¤¿¤á¤Ë¥¨¥é¡¼¤¬È¯À¸¤¹¤ëÍýͳ¤ò¶µ¤¨¤Æ¤¤¤¿¤À¤±¤ì¤Ð¤È»×¤¤¤Þ¤¹¡£

¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


xxxz

¥ê¥ó¥¯

2010/5/9(Sun) 09:30:54|NO.32571

#define global REF_LBL "ref_lbl.hsp"
¤Ë¤¹¤ë¤È¾å¼ê¤¯¤¤¤­¤Þ¤¹¡£

HSP¤Î»ÅÍͤÀ¤È»×¤¤¤Þ¤¹¡£



¥æ¥¦

¥ê¥ó¥¯

2010/5/9(Sun) 09:44:15|NO.32573

xxxzÍÍ

global¤È¤«Ä¶´ðËÜŪ¤Ê»ö¤ò¸«Íî¤È¤·¤Æ¤·¤Þ¤Ã¤Æ¤¤¤Þ¤·¤¿¡£
¤³¤ì¤ÏÃѤº¤«¤·¤¤¡Ä¡£
¤´²óÅú¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡ª



ONION software Copyright 1997-2023(c) All rights reserved.