changed moo_getpfnum().

added argument count checks when processing primitive method pragmas
This commit is contained in:
hyunghwan.chung
2017-04-01 04:58:02 +00:00
parent 447670aba8
commit aeb02213b4
6 changed files with 149 additions and 150 deletions

View File

@ -124,18 +124,10 @@ class Semaphore(Object)
## ==================================================================
method signal
{
<primitive: #_semaphore_signal>
self primitiveFailed.
}
method wait
{
<primitive: #_semaphore_wait>
self primitiveFailed.
}
method(#primitive) signal.
method(#primitive) wait.
(*
method waitWithTimeout: seconds
{
<primitive: #_semaphore_wait>
@ -147,7 +139,7 @@ class Semaphore(Object)
<primitive: #_semaphore_wait>
self primitiveFailed
}
*)
method critical: aBlock
{
self wait.