Author: Tim Felgentreff <[email protected]>
Branch: rbitblt
Changeset: r555:7fcbfe51e7af
Date: 2014-01-08 10:36 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/7fcbfe51e7af/

Log:    add beep prim

diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -1009,12 +1009,17 @@
 
 #____________________________________________________________________________
 # Misc Primitives (138 - 149)
+BEEP = 140
 VM_PATH = 142
 SHORT_AT = 143
 SHORT_AT_PUT = 144
 FILL = 145
 CLONE = 148
 
+@expose_primitive(BEEP, unwrap_spec=[object])
+def func(interp, s_frame, w_receiver):
+    return w_receiver
+
 @expose_primitive(VM_PATH, unwrap_spec=[object])
 def func(interp, s_frame, w_receiver):
     return interp.space.wrap_string("%s%s" % (interp.space.executable_path(), 
os.path.sep))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to