Permalink
Browse files

Example fixes for 1.0

  • Loading branch information...
1 parent ca0146a commit bda3af4e5e087d3849aebd6ef2cd3478d37d82aa @mudhairless mudhairless committed Oct 26, 2014
@@ -9,6 +9,8 @@
# include once "ext/containers/hashtable.bi"
+fbext_Instanciate(fbext_HashTable, ((single)))
+
using ext
var myHT = fbext_HashTable((single))(16)
@@ -34,7 +36,7 @@ print "Count after insertion: " & myHT.count
print "One: " & *(myHT.find("One"))
-print "Removing Tacos"
+print "Removing Tacos"
myHT.remove("Tacos")
print "Two: " & *(myHT.find("Two"))
@@ -1,5 +1,7 @@
# include once "ext/containers/hashtable.bi"
+fbext_Instanciate(fbext_HashTable, ((integer)))
+
declare sub MyIterator ( byref key as const string, byval value as integer ptr )
var MyHT = ext.FBEXT_HASHTABLE((integer))(150)
@@ -35,14 +35,14 @@ namespace ns
end namespace
-namespace ext
+'namespace ext
using ns
' Instanciate an ext.HashTable class used to store ns.PersonInfo element
' values. Note that this macro must be used in namespace ext, and that the
' fully qualified type name is required.
fbext_Instanciate(fbext_HashTable, ((PersonInfo)))
-end namespace
+'end namespace
using ns
' Create a hashtable with a minimize size of 10 elements.
@@ -1,6 +1,6 @@
#define FBEXT_NO_EXTERNAL_LIBS -1
#include once "ext/graphics/bmp.bi"
-
+using ext
screenres 640, 480, 24
var b1 = ext.gfx.bmp.load(ext.File("marmot1bit.bmp"))

0 comments on commit bda3af4

Please sign in to comment.