Commits

Anonymous committed 40bd7af

force_inline

Comments (0)

Files changed (3)

 public:
 	virtual void run();
 public:
-	bool on_connect();
-	bool on_close();
+	force_inline bool on_connect();
+	force_inline bool on_close();
 public:
-	void info(const char * str);
-	bool ini_link(const char * ip, uint16_t port, 
+	force_inline void info(const char * str);
+	force_inline bool ini_link(const char * ip, uint16_t port, 
 		const char * on_connect_func, const char * on_close_func);
-	void tick_link();
-	void send_msg(mymsg * pmsg);
+	force_inline void tick_link();
+	force_inline void send_msg(mymsg * pmsg);
 private:
-	bool ini();
-	void exit();
-	void register_func();
+	force_inline bool ini();
+	force_inline void exit();
+	force_inline void register_func();
 private:
 	int32_t m_id;
 	std::string m_filename;

robot/robot_event_processor.h

 public:
 	robot_event_processor();
 	~robot_event_processor();
-	bool on_close(mysocket & e);
-	bool on_accept(mysocket & e);
-	bool on_connect(mysocket & e);
-	bool on_recv_msg(mysocket & e, const mymsg & msg);
+	force_inline bool on_close(mysocket & e);
+	force_inline bool on_accept(mysocket & e);
+	force_inline bool on_connect(mysocket & e);
+	force_inline bool on_recv_msg(mysocket & e, const mymsg & msg);
 private:
 };
 
 	force_inline virtual bool heartbeat();
 	force_inline virtual bool exit();
 public:
-	static void create_robot(int32_t start, int32_t num, const char * filename);
+	static force_inline void create_robot(int32_t start, int32_t num, const char * filename);
 private:
 	force_inline void register_global_func();
 private: