Skip to content

Commit

Permalink
RBGuileBridge.swift(track_to_scm_record): Comment.
Browse files Browse the repository at this point in the history
Remark that this method should never raise an exception, so we needn't wrap it in a catch-construction.
  • Loading branch information
toothbrush committed Jan 1, 2022
1 parent 7717782 commit d636b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Spotiqueue/Classes/RBGuileBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public func set_auto_advance(data: SCM) -> SCM {
@_cdecl("track_to_scm_record")
public func track_to_scm_record(track: RBSpotifyItem) -> SCM {
// Beware, _make-track is the generated record creator thing, but it's a syntax transformer which can't be called directly, so we have a wrapper function called make-track.
// We choose not to do exception handling here because it involves only "our" code.
scm_call_5(scm_variable_ref(scm_c_lookup("make-track")),
scm_from_utf8_string(track.spotify_uri), // uri
scm_from_utf8_string(track.title), // title
Expand Down

0 comments on commit d636b00

Please # to comment.