{"id":3110,"date":"2019-06-10T14:19:17","date_gmt":"2019-06-10T05:19:17","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3110"},"modified":"2019-06-11T09:05:52","modified_gmt":"2019-06-11T00:05:52","slug":"cpp-throw-%e3%81%ae%e6%84%8f%e5%91%b3","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3110","title":{"rendered":"[CPP] throw() \u306e\u610f\u5473"},"content":{"rendered":"<p>TOPPERS\/JSP\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306b <code>throw()<\/code> \u306e\u8a18\u8ff0\u304c\u591a\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u8a18\u8ff0\u306f\u300e\u7121\u4f8b\u5916\u4fdd\u8a3c(no-throw guarantee)\u300f\u3068\u547c\u3070\u308c\u308b\u300c\u4f8b\u5916\u306f\u6295\u3052\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h4>(\u4f8b) kernel.h<\/h4>\n<pre class=\"lang:c++ decode:true \" >extern ER       act_tsk(ID tskid) throw();\r\nextern ER       iact_tsk(ID tskid) throw();\r\nextern ER_UINT  can_act(ID tskid) throw();\r\nextern void     ext_tsk(void) throw();\r\nextern ER       ter_tsk(ID tskid) throw();\r\nextern ER       chg_pri(ID tskid, PRI tskpri) throw();\r\nextern ER       get_pri(ID tskid, PRI *p_tskpri) throw();<\/pre>\n<p>&nbsp;<\/p>\n<h4>TOPPERS\/JSP\u306e\u4ed8\u5c5e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 &quot;doc\/c++.txt&quot;<\/h4>\n<blockquote><p>3.5 \u30b5\u30fc\u30d3\u30b9\u30b3\u30fc\u30eb\u306e\u4f8b\u5916\u6307\u5b9a<br \/>\nTOPPERS\/JSP\u30ab\u30fc\u30cd\u30eb\u304c\u63d0\u4f9b\u3059\u308b\u5168\u30b5\u30fc\u30d3\u30b9\u30b3\u30fc\u30eb\u306f\u4f8b\u5916\u3092\u30b9\u30ed\u30fc\u3059\u308b\u3053\u3068\u304c\u306a\u3044\u305f\u3081\u3001\u4f8b\u5916\u6307\u5b9athrow()\u304c\u4ed8\u52a0\u3055\u308c\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4f8b\u5916\u51e6\u7406\u306e\u305f\u3081\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u751f\u6210\u3055\u308c\u308b\u3053\u3068\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u3089\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u3001\u4e3b\u3068\u3057\u3066\u7a7a\u9593\u52b9\u7387\u306e\u5411\u4e0a\u304c\u671f\u5f85\u3067\u304d\u308b\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3068\u300cint\u578b \u307e\u305f\u306f double\u578b \u306e\u4f8b\u5916\u3092\u9001\u51fa\u3059\u308b\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:c++ decode:true \" >void f() throw( int, double );<\/pre>\n<p>() \u306e\u4e2d\u8eab\u304c\u7a7a\u306a\u306e\u3067\u3001\u300c\u4f8b\u5916\u306f\u9001\u51fa\u3057\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u610f\u5473\uff08\u30b3\u30f3\u30d1\u30a4\u30e9\u6700\u9069\u5316\uff09\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>Reference<\/h4>\n<p><a href=\"https:\/\/cpplover.blogspot.jp\/2014\/10\/c.html\">\u672c\u306e\u866b \u6c5f\u6dfb\u4eae\u306e\u30d6\u30ed\u30b0\u300eC++\u306e\u4f8b\u5916\u6307\u5b9a\u300f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TOPPERS\/JSP\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306b throw() \u306e\u8a18\u8ff0\u304c\u591a\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u8a18\u8ff0\u306f\u300e\u7121\u4f8b\u5916\u4fdd\u8a3c(no-throw guarantee)\u300f\u3068\u547c\u3070\u308c\u308b\u300c\u4f8b\u5916\u306f\u6295\u3052\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[84,79],"class_list":["post-3110","post","type-post","status-publish","format-standard","hentry","category-memo","tag-cpp","tag-toppers"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=3110"}],"version-history":[{"count":9,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3110\/revisions"}],"predecessor-version":[{"id":3125,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3110\/revisions\/3125"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}